<script setup>
import { onMounted, ref } from "vue";

const files = ref([])

onMounted(async()=>{
    const fileList = await myApi.getFileList()
    files.value = fileList
})
</script>
 
<template>
<div class="img-container">
    <img v-for="item in files" :key="item" :src="'/public/upload/'+item" alt="">
</div>
</template>

<style lang="stylus">
.img-container
    padding 20px
    display flex
    justify-content center
    align-items center
    img
        width 200px
</style>